import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:sph_shipper/Message/UserClassroom.dart';

import '../AppConfig/RouteAct.dart';
import '../Main/PlatformRules/PlatformRules.dart';
import 'ServiceNotification.dart';

class NotificationPage extends StatefulWidget {
  const NotificationPage({super.key});

  @override
  State<NotificationPage> createState() => _NotificationPageState();
}

class _NotificationPageState extends State<NotificationPage> {
  @override
  Widget build(BuildContext context) {
    return ListView(
    children: [
      Container(
        margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
        decoration: BoxDecoration(
            color: Colors.white,
            borderRadius: BorderRadius.all(Radius.circular(10))),
        padding: EdgeInsets.only(left: 34.w,top: 12.h,right: 34.w,bottom: 5.h),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            GestureDetector(
              child: Column(
                children: [
                  Image.asset("lib/Images/PersonCenter/服务通知@3x.png",width: 40.w,height: 40.h,),
                  SizedBox(height: 7.h,),
                  Text("服务通知",style: TextStyle(color: Colors.black,fontSize: 12.sp),),
                ],
              ),
              onTap: (){
                Navigator.push(context,
                    MaterialPageRoute(builder: (context) {
                      return ServiceNotification();
                    }));
              },
            ),
            GestureDetector(
              child: Column(
                children: [
                  Image.asset("lib/Images/PersonCenter/货主课堂@3x.png",width: 40.w,height: 40.h,),
                  SizedBox(height: 7.h,),
                  Text("货主课堂",style: TextStyle(color: Colors.black,fontSize: 12.sp),),
                ],
              ),
              onTap: (){
                Navigator.push( context, FadeRoute(page:UserClassroom(
                )));
              },
            ),
            GestureDetector(
              child: Column(
                children: [
                  Image.asset("lib/Images/PersonCenter/平台规则@3x.png",width: 40.w,height: 40.h,),
                  SizedBox(height: 7.h,),
                  Text("平台规则",style: TextStyle(color: Colors.black,fontSize: 12.sp),),
                ],
              ),
              onTap: (){
                Navigator.push(context,
                    MaterialPageRoute(builder: (context) {
                      return PlatformRules();
                    }));
              },
            ),

          ],
        ),
      ),
    ],
    );
  }
}
